package com.itWaiLong.Mapper;

import com.itWaiLong.Dao.tech_discussion;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Mapper;

@Mapper
public interface PostMapper {

    /**
     * 添加讨论主题
     * @param techDiscussion
     * @return
     */
    int add(tech_discussion techDiscussion);

    /**
     * 删除讨论
     * @param postId
     * @return
     */
    @Delete("delete from campus_programming.tech_discussion where discussion_id = #{postId}")
    int delete(int postId);
}
